﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Home/Site.Master"
    Inherits="ProjetoComperio.SystemFramework.Web.ComperioViewPage<ProjetoComperio.Presentation.Web.Models.ListAcademicPeople>" %>
<%@ Import Namespace="ProjetoComperio.Framework.Web.Security.UrlEncrypt" %>
<%@ Import Namespace="ProjetoComperio.DataLayer.Entities" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="TitleContent" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        Lista de acadêmicos por contribuição</h2>
    <div>
        <% using (Html.BeginForm())
           { %>
        <div class="div_texbox">
            <%=Html.DropDownList("ContributionID", (Session["Contributions"] as List<SelectListItem>), (Object)new { size = 1 })%>
        </div>
        <%} %>
    </div>
    <%= Html.Grid(Model.PeopleInProject as IQueryable<Person>).Columns(
           column => 
           {
            column.For(x => x.PersonID);
            column.For(x => x.Name);   
            column.For(x => x.Email);
            column.For(x =>  Html.ActionLink("Remover", "Remove", new { personID = URLEncrypt.EncryptToString(x.PersonID.ToString()),contributionID =1 })
               ).DoNotEncode().Attributes(x => new Hash(style => "font-weight:bold"));
           }).Attributes(Style =>  "width:100%").Empty("Não existem exceções")
    %>
    <br />
    <br />
</asp:Content>
